extends "../cTDA_2_1/cTDA_2_1.gd"
func _info():
	pass

func _connect():
	._connect()
var baseId = ""
func _extInit():
	._extInit()
	lv = 4
	attCoe.atk *=1.5
	attCoe.maxHp *= 1.5

	addCdSkill("xs2",9)
	addSkillTxt("风暴：对自身九宫格范围内所有敌人连续攻击5次，每次造成60%伤害，攻击一次后下次攻击附加(10+12%物攻)点伤害[cd:9秒]")

func _castCdSkill(id):
	._castCdSkill(id)

	if id == "xs2":
		cst("风暴","000000",position)
		var chas = getAllChas(1)
		var exdmg = 0
		for i in range(5):
			for j in chas:
				if abs(j.cell.x - cell.x ) <= 1 && abs(j.cell.y - cell.y) <= 1:
					hurtChara(j,att.atk * 0.33 + exdmg,Chara.HurtType.PHY,Chara.AtkType.SKILL)
			exdmg += 10 + att.atk * 0.12
